package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券购买订单对象 merchant_coupon_order
 * 
 * @author dongdong
 * @date 2025-10-27
 */
public class MerchantCouponOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购买记录ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long merchantId;
    /** 商家名称 */
    @Excel(name = "商家名称")
    private String merchantName;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long couponId;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String couponName;

    /** 总面值 */
    @Excel(name = "总面值")
    private BigDecimal totalFaceValue;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal actualAmount;

    /** 状态 （2待支付;3已支付;5已取消;7冻结）*/
    @Excel(name = "状态（2待支付;3已支付;5已取消;7冻结）")
    private Integer orderStatus;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime payTime;

    /** 支付渠道交易号 */
    @Excel(name = "支付渠道交易号")
    private String transNo;

    /** 支付用户id */
    @Excel(name = "支付用户id")
    private String uniqueId;

    /** 发放次数 */
    @Excel(name = "发放次数")
    private Integer issueNum;

    /** 发放金额 */
    @Excel(name = "发放金额")
    private BigDecimal issueAmount;

    /** 未发放金额 */
    @Excel(name = "未发放金额")
    private BigDecimal notIssueAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setMerchantId(Long merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() 
    {
        return merchantId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }
    public void setTotalFaceValue(BigDecimal totalFaceValue) 
    {
        this.totalFaceValue = totalFaceValue;
    }

    public BigDecimal getTotalFaceValue() 
    {
        return totalFaceValue;
    }
    public void setActualAmount(BigDecimal actualAmount) 
    {
        this.actualAmount = actualAmount;
    }

    public BigDecimal getActualAmount() 
    {
        return actualAmount;
    }
    public void setOrderStatus(Integer orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus() 
    {
        return orderStatus;
    }
    public void setPayTime(LocalDateTime payTime)
    {
        this.payTime = payTime;
    }

    public LocalDateTime getPayTime()
    {
        return payTime;
    }
    public void setTransNo(String transNo) 
    {
        this.transNo = transNo;
    }

    public String getTransNo() 
    {
        return transNo;
    }
    public void setUniqueId(String uniqueId) 
    {
        this.uniqueId = uniqueId;
    }

    public String getUniqueId() 
    {
        return uniqueId;
    }
    public void setIssueNum(Integer issueNum) 
    {
        this.issueNum = issueNum;
    }

    public Integer getIssueNum() 
    {
        return issueNum;
    }
    public void setIssueAmount(BigDecimal issueAmount) 
    {
        this.issueAmount = issueAmount;
    }

    public BigDecimal getIssueAmount() 
    {
        return issueAmount;
    }
    public void setNotIssueAmount(BigDecimal notIssueAmount) 
    {
        this.notIssueAmount = notIssueAmount;
    }

    public BigDecimal getNotIssueAmount() 
    {
        return notIssueAmount;
    }

    public String getMerchantName() {
        return merchantName;
    }
    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("couponId", getCouponId())
            .append("couponName", getCouponName())
            .append("totalFaceValue", getTotalFaceValue())
            .append("actualAmount", getActualAmount())
            .append("orderStatus", getOrderStatus())
            .append("payTime", getPayTime())
            .append("transNo", getTransNo())
            .append("uniqueId", getUniqueId())
            .append("issueNum", getIssueNum())
            .append("issueAmount", getIssueAmount())
            .append("notIssueAmount", getNotIssueAmount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
